//Sets the background color of the master UIView (when there are no windows/tab groups on it)
Titanium.UI.setBackgroundColor('#fff');

//Open the local index.html file in a new webview
    var webview = Titanium.UI.createWebView({url:'index.html', scalesPageToFit:'true'});
    var window = Titanium.UI.createWindow({exitOnClose:true});
    window.add(webview);
    window.open({modal:true});

    Ti.App.addEventListener('openURL', function(e){
        Ti.Platform.openURL(e.url);
    });
